package com.baizhi.single;

public class SingleTest01 {
    public static void main(String[] args) {
        //创建Person对象
        Person p1 = Person.getInstance();
        Person p2 = Person.getInstance();
        Person p3 = Person.getInstance();


        System.out.println(p1);
        System.out.println(p2);
        System.out.println(p3);
        System.out.println(p1==p2);
    }
}
